package cn.larry.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.larry.common.annotation.Excel;
import cn.larry.common.core.domain.BaseEntity;

/**
 * 微信应用管理对象 sys_wxapp_config
 *
 * @author cn-larry
 * @date 2023-11-29
 */
public class SysWxappConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 应用类型 */
    @Excel(name = "应用类型")
    private String appType;

    /** 微信应用ID */
    @Excel(name = "微信应用ID")
    private String appId;

    /** 密钥 */
    @Excel(name = "密钥")
    private String secret;

    /** token */
    @Excel(name = "token")
    private String token;

    /** token失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "token失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tokenFailureTime;

    /** 逻辑删除(1可用，0删除) */
    @Excel(name = "逻辑删除(1可用，0删除)")
    private String isDelete;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAppType(String appType)
    {
        this.appType = appType;
    }

    public String getAppType()
    {
        return appType;
    }
    public void setAppId(String appId)
    {
        this.appId = appId;
    }

    public String getAppId()
    {
        return appId;
    }
    public void setSecret(String secret)
    {
        this.secret = secret;
    }

    public String getSecret()
    {
        return secret;
    }
    public void setToken(String token)
    {
        this.token = token;
    }

    public String getToken()
    {
        return token;
    }
    public void setTokenFailureTime(Date tokenFailureTime)
    {
        this.tokenFailureTime = tokenFailureTime;
    }

    public Date getTokenFailureTime()
    {
        return tokenFailureTime;
    }
    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appType", getAppType())
            .append("appId", getAppId())
            .append("secret", getSecret())
            .append("token", getToken())
            .append("tokenFailureTime", getTokenFailureTime())
            .append("isDelete", getIsDelete())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
